import { createRouter, createWebHistory } from 'vue-router'
import type { RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'Home',
    component: () => import('@/views/ChatApp.vue'),
  },
  {
    path: '/chat',
    name: 'Chat',
    component: () => import('@/views/ChatApp.vue'),
  },
  {
    path: '/conversation',
    name: 'Conversation',
    component: () => import('@/views/Conversation.vue'),
  },
  {
    path: '/test-suggestions',
    name: 'TestSuggestions',
    component: () => import('@/views/SuggestedQuestionsTest.vue'),
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'NotFound',
    component: () => import('@/views/NotFound.vue'),
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
